package db_entity

import "time"

/**
 * @author 蔚蔚樱
 * @version V1.0
 * @date 2023/5/10 01:04
 * @author-Email micromicrohard@outlook.com
 * @blogURL https://blog.csdn.net/Micro_Micro_Hard
 * @description 新的表结构
 * */

type AlgoUTData struct {
	Id              int       `gorm:"column:id;primary_key;auto_increment" json:"id"`
	UTName          string    `gorm:"column:ut_name;not null" json:"ut_name"`              // 测试用例名称
	UTBody          string    `gorm:"column:ut_body;not null" json:"ut_body"`              // 测试用例主体
	EffectClassName string    `gorm:"column:class_name;not null" json:"effect_class_name"` // 适用测试用例的类
	Creator         string    `gorm:"column:creator;not null;default:'jove'" json:"creator"`
	IsDeleted       int       `gorm:"column:id_delete;not null;default:0" json:"is_deleted"`
	CreateTime      time.Time `gorm:"column:create_time;not null;default:CURRENT_TIMESTAMP" json:"create_time"`
	UpdateTime      time.Time `gorm:"column:update_time;not null;default:CURRENT_TIMESTAMP" json:"update_time"`
}

type UTData struct {
	Input      []string
	InputDesc  string
	Output     []string
	OutputDesc string
	UTDataDesc string
}

func (entity *AlgoUTData) TableName() string {
	return "algo_ut_data"
}

func (entity *AlgoUTData) TransMap(mapValue map[interface{}]interface{}) *AlgoUTData {
	return &AlgoUTData{}
}

